#ifndef MAINCONTROLLER_H
#define MAINCONTROLLER_H

#include <QObject>
#include "camerathread.h"
#include "informationthread.h"

namespace controllers {
    class MainController: public QObject
    {
        Q_OBJECT

    public:
        MainController();
        virtual ~MainController();
        void setCameraThread(CameraThread* ct);
        void setInformationThread(InformationThread* it);
        void startCameraThread();
        void stopCameraThread();

    public slots:
        void takeReferenceImage();
        void recordVideo();
        void takeSnapshotImage();
        void recognizeObject();

    private:
        CameraThread        *_cameraThread;
        InformationThread   *_informationThread;
    };
}
#endif // MAINCONTROLLER_H
